package com.flying.acls.dao;

import com.flying.acls.model.Resource;
import com.flying.acls.model.Sid;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.querydsl.QuerydslPredicateExecutor;
import org.springframework.security.access.prepost.PreAuthorize;

import java.util.List;

public interface SidRepository extends JpaRepository<Sid, Long>, QuerydslPredicateExecutor<Sid> {
    @PreAuthorize("authenticated")
    List<Sid> findAll();
}